/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aal.business;

import com.aal.entity.Customer;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author quy
 */
@Local
public interface CustomerManagementLocal {
    double getDiscoutCustomerGroup(int id);
    boolean loginOk(String username,String password);
    boolean createCustomerGroup(double discountpercent);
    List<Customer> searchbyName(String username);
    boolean editCustomerGroup(int customergroupId, double discountpercent);
    boolean createCustomer(String username, String password, int customergroupId, String firstname, String lastname, String email, String phone, String billingaddress);
    boolean editCustomer(String username, String password, int customergroupId, String firstname, String lastname, String email, String phone, String billingaddress);

    Customer getCustomer(String username);
}
